package com.wxp.demo04.util;

import android.annotation.SuppressLint;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 日期工具类
 *
 * @author wxp
 * @version 1.0
 * @email wangxpid@qq.com
 * @description 日期工具类
 * @date 2024-05-04
 */
public class DateUtils {

    private DateUtils() {
    }

    public static final String HH_MM_SS = "HH:mm:ss";

    @SuppressLint("SimpleDateFormat")
    private static final SimpleDateFormat hmsSdf = new SimpleDateFormat(HH_MM_SS);

    /**
     * 获取当前时间
     *
     * @return 当前时间
     */
    public static String getNowTime() {
        return hmsSdf.format(new Date());
    }


}
